/**
 * @BasicTask.as
 * 
 * @author sodaChen mail:sujun10#21cn.com
 * @version 1.0
 * <br>Copyright (C), 2012 ASFrame.com
 * <br>This program is protected by copyright laws.
 * <br>Program Name:ASFrame
 * <br>Date:2012-10-8
 */
package com.asframe.task
{
	/**
	 *
	 * @author sodaChen
	 * Date:2012-10-8
	 */
	public class BasicTask implements ITask
	{
		/** 名称 **/
		protected var name				:String;
		/** 类型 **/
		protected var type				:String;
		/** 是否完成任务 **/
		protected var finish			:Boolean;
		protected var runner			:IRunner;
		
		public function BasicTask()
		{
		}
		public function setName(name:String):void
		{
			this.name = name;
		}
		public function getName():String
		{
			return name;
		}
		public function setType(type:String):void
		{
			this.type = type;
		}
		public function getType():String
		{
			return type;
		}
		
		public function start(runner:IRunner):void
		{
			this.runner = runner;
		}
		
		public function isFinish():Boolean
		{
			return finish;
		}
		
		public function destroy(o: * =null):void
		{
			finish = true;
			runner = null;
			name = null;
			type = null;
		}
		
		public function tick():void
		{
		}
	}
}
